import request from '@/utils/request'


// 查询客户资料列表
export function receivedEmailList(query) {
    return request({
      url: '/my_home_page/my_email/list',
      method: 'get',
      params: query
    })
  }
// 查询客户资料列表
export function sendTheEmailLis(query) {
  return request({
    url: '/my_home_page/send_the_email/list',
    method: 'get',
    params: query
  })
}
// 查询客户资料列表
export function selectUserNameList() {
  return request({
    url: '/my_home_page/user_name/list',
    method: 'get'
  })
}
export function submitEmail(submitEmail){
  return request({
    url:'/my_home_page/send_new_email/add',
    method:'post',
    data: submitEmail
  });
}
export function readEmail(query){
  return request({
    url:'my_home_page/my_email/read_email/' + query,
    method:'get'
  });
}
export function deleteEmail(query){
  return request({
    url:'my_home_page/my_email/delete_email/' + query,
    method:'get'
  });
}